home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 285_01 / bison.man < prev    next >
Text File  |  1990-07-08  |  2KB  |  133 lines

  1.  
  2.  
  3.  
  4. BISON(1)            UNIX Programmer's Manual             BISON(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      bison - GNU Project parser generator (yacc replacement)
  10.  
  11. SYNOPSIS
  12.      bison [ -dlvty ] file
  13.  
  14. DESCRIPTION
  15.      Bison is a parser generator in the style of yacc(1).  It
  16.      should be upwardly compatible with input files designed for
  17.      yacc.
  18.  
  19.      Input files should follow the yacc convention of ending in
  20.      ``.y''.  Unlike yacc, the generated files do not have fixed
  21.      names, but instead use the prefix of the input file.  For
  22.      instance, a grammar description file named parse.y would
  23.      produce the generated parser in a file named parse.tab.c,
  24.      instead of yacc's y.tab.c.
  25.  
  26.      Bison takes five optional flags.
  27.  
  28.      -d   Produce a .tab.h file, similar to yacc's y.tab.h file.
  29.  
  30.      -l   Omit #line lines in the parser output file. Error mes-
  31.           sages from the C compiler will then be associated with
  32.           lines in the parser output file, instead of lines in
  33.           the original grammar file.
  34.  
  35.      -t   Turn on debugging. This option causes the bison output
  36.           to have debugging code made available via the C pre-
  37.           processor.  The external variable yydebug should be
  38.           made non-zero to have the debugging code actually pro-
  39.           duce output.
  40.  
  41.      -v   Be verbose. Analogous to the same flag for yacc.
  42.  
  43.      -y   Use fixed output file names. I.e., force the output to
  44.           be in files y.tab.c, y.tab.h, and so on. This is for
  45.           full yacc compatibility.
  46.  
  47.      If bison is invoked with the name yacc, it will behave like
  48.      yacc does. This is equivalent to simply supplying the -y
  49.      flag.
  50.  
  51. FILES
  52.      /usr/local/lib/bison.simple   simple parser
  53.      /usr/local/lib/bison.hairy    complicated parser
  54.  
  55. SEE ALSO
  56.      yacc(1)
  57.      The Bison Reference Manual, included as the file
  58.      bison.texinfo in the bison source distribution.
  59.  
  60.  
  61.  
  62.  
  63. Printed 12/28/88              local                             1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. BISON(1)            UNIX Programmer's Manual             BISON(1)
  71.  
  72.  
  73.  
  74. DIAGNOSTICS
  75.      ``Self explanatory.''
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Printed 12/28/88              local                             2
  130.  
  131.  
  132.  
  133.